package ve.ucv.patologiaocular.util;

import javax.mail.PasswordAuthentication;

public class AutentificadorSMTP extends javax.mail.Authenticator {

	public AutentificadorSMTP(){
		super();
	}
	
	@Override
	public PasswordAuthentication getPasswordAuthentication() {
		String miCorreo = "rosmaira@gmail.com"; 
		String miContrasena = "++++++"; 
		if ((miCorreo != null) && (miCorreo.length() > 0) && (miContrasena != null) && (miContrasena.length   () > 0)) { 
			return new PasswordAuthentication(miCorreo, miContrasena); 
		} 
		return null;
    }
}
